
TestCase("sampleTest", {

	initDB : function(){
		
		
		var shortName = 'crcInv1';
		var version = '1.0';
		var displayName = 'CRC Database';
		var maxSize = 1024 * 1024 * 5; // in bytes		
		
		crcDB = HPI.SQLDatabase.open({
				shortName : shortName
			   ,dbName : shortName
			   ,version : version
			   ,displayName : displayName
			   ,maxSize  : maxSize
			   ,storageDriver : "LocalStorage"
			});
	
	}
	
	,testWhere : function(){
	
		this.initDB();
		
		query = "DROP TABLE IF EXISTS _existing";
		ExecuteReaderWithSingleCallback(query, crcDB, 
			function(_t, _r_or_e){						
				assertTrue(
						 _r_or_e instanceof HPI.SQLResultSet
					&& _r_or_e.rowsAffected == 0
					&& _r_or_e.rows instanceof HPI.SQLResultSetRowList
					&& _r_or_e.rows.length == 0
				);
			}
		);
		
	}
	
});